package com.twu.biblioteca.elements;

public class User {
    private String userId;
    private String password;
    private String name;
    private String emailAddress;
    private int phoneNumber;

    public String getPassword() {
        return password;
    }

    public String getUserId() {
        return userId;
    }

    public String getName() {
        return name;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public int getPhoneNumber() {
        return phoneNumber;
    }

    public static class Builder {
        private User user = new User();
        public Builder userId(String userId) {
            user.userId = userId;
            return this;
        }

        public Builder password(String password) {
            user.password = password;
            return this;
        }

        public User build() {
            return user;
        }

        public Builder name(String name) {
            user.name = name;
            return this;
        }

        public Builder emailAddress(String emailAddress) {
            user.emailAddress = emailAddress;
            return this;
        }

        public Builder phoneNumber(int phoneNumber) {
            user.phoneNumber = phoneNumber;
            return this;
        }
    }
}
